package com.along.utility.common.response;

/**
 *
 * @author jingjiwu
 * @date 2021-01-11 16:57:13
 */
public enum DefaultResultCode implements ResultCode  {
	SUCCESS(200, ""),
	BAD_REQUEST(400, "非法请求"),
	UNAUTHORIZED(401, "未经授权"),
	PAYMENT_REQUIRED(402, ""),
	FORBIDDEN(403, "您无此权限"),
	NOT_FOUND(404, "不存在此接口"),
	SERVER_ERROR(500, "服务异常"),
	ID_ERROR(501, "ID未授权"),
	SECRET_ERROR(502, "Secret验证错误"),
	TIMEOUT_ERROR(503, "请求时间异常"),
	SIGN_ERROR(504, "签名验证错误"),
	UNDEFINED_ERROR(505, "其他异常"),
	;

	private Integer value;
	private String message;

	private DefaultResultCode(Integer value, String message) {
		this.value = value;
		this.message = message;
	}
	@Override
	public Integer getValue() {
		return value;
	}
	@Override
	public String getMessage() {
		return message;
	}

}
